package com.ruoyi.map.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.map.domain.FhMapWeather;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * @author sangsijing
 * @since 2025/5/6 14:37
 */
public interface FhMapWeatherMapper extends BaseMapper<FhMapWeather> {


    List<FhMapWeather> weatherList(FhMapWeather fhMapWeather);

    int weatherDelete(Long id);

    FhMapWeather weatherDetails(@Param("id") Long id);

    int weatherAdd(FhMapWeather fhMapWeather);

    List<FhMapWeather> getCity(@Param("area")String area);

    List<FhMapWeather> getUserCity(@Param("userId")Long userId);


    List<FhMapWeather> selectByEntity(FhMapWeather fhMapWeather);

    /**
     * 批量软删除
     * @param ids
     * @return
     */
    int updateDelFlagByIds(@Param("ids") Long[] ids);
}
